home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
3D Game Programming All in One
/
3D Game Programming All in One Disc.iso
/
3D2E
/
RESOURCES
/
KOOB
/
control
/
main.cs
< prev
Wrap
Text File
|
2006-09-24
|
841b
|
29 lines
//------------------------------------------------------------------------
// control/main.cs
// Copyright (c) 2003, 2006 Kenneth C. Finney
//------------------------------------------------------------------------
Exec("./client/presets.cs");
Exec("./server/presets.cs");
package control {
function OnStart()
{
Parent::OnStart();
Echo("\n++++++++++++ Initializing control module ++++++++++++");
Exec("./client/misc/sndprofiles.cs");
Exec("./client/initialize.cs");
Exec("./server/initialize.cs");
InitializeServer(); // Prepare the server-specific aspects
if ($Server::Dedicated)
InitializeDedicatedServer();
else
InitializeClient();
}
function OnExit()
{
Parent::onExit();
}
}; // Client package
ActivatePackage(control); // Tell TGE to make the client package active